/**
 * @see [微信官方文档](https://mp.weixin.qq.com/debug/wxadoc/dev/api/wxml-nodes-info.html#nodesrefboundingclientrectcallback)
 */

export default function bounding_client_rect(nodes_ref: wx.NodesRef) {
	return new Promise<wx.NodesRefRect | wx.NodesRefRect[]>((resolve) => {
		nodes_ref.boundingClientRect((res) => {
			resolve(res);
		}).exec();
	});
}
